CREATE PROCEDURE [dbo].[users_update]
    @userId int,
    @email nvarchar(256),
    @password binary(32),
    @salt binary(8),
    @login nvarchar(256),
    @status tinyint
AS
UPDATE Users
SET 
    Email = @email,
    Password = @password,
    Salt = @salt,
    Login = @login,
    Status = @status
WHERE
    UserId = @userId
